Updated: Mar 3, 20245 min read

First Local AI Model Specially trained to Control Home Assistant

Written by: Fixt
Sentinel Sight: Unleash the Full Power of AI Vigilance with Gemini Vision and Home Assistant

New version of the integration out now, it is now compatible with any other Open AI API compatible project

Text Generation WebUI

To install it on the same device as Home Assistant (CPU only)

Open your Home Assistant instance and show the dashboard of a Supervisor add-on.

To install it on you own PC (Windows/Mac/Linux/WSL)

Configure the Model

If you are using the Add-On, just click on the show Add-on button ↑, and then click on Open Web UI

If you are using the PC version, just open the web UI from the link in the console or just go to http://localhost:7860/ from the PC you installed it

If you want a simpler AI configuration using this same integration, take a look at my Ollama + Home Assistant Tutorial

List of Compatible Models

Home 3B v3 GGUF

acon96/Home-3B-v3-GGUF
NameQuant methodBitsSizeMax RAM requiredUse Case
Home-3B-v3.q2_k.ggufQ2_K21.08 GB3.50 GBsmallest, significant quality loss - not recommended for most purposes
Home-3B-v3.q3_k_m.ggufQ3_K_M31.39 GB3.89 GBvery small, high quality loss
Home-3B-v3.q4_k_m.ggufQ4_K_M41.71 GB4.21 GBmedium, balanced quality - recommended
Home-3B-v3.q5_k_m.ggufQ5_K_M51.99 GB4.49 GBlarge, very low quality loss - recommended
Home-3B-v3.q8_0.ggufQ8_082.97 GB5.47 GBvery large, extremely low quality loss - not recommended

Home 3B v2 GGUF

acon96/Home-3B-v2-GGUF
NameQuant methodBitsSizeMax RAM requiredUse Case
home-3b-v2.q2_k.ggufQ2_K21.11 GB3.67 GBsmallest, significant quality loss - not recommended for most purposes
home-3b-v2.q3_k_m.ggufQ3_K_M31.43 GB3.98 GBvery small, high quality loss
home-3b-v2.q4_k_m.ggufQ4_K_M41.74 GB4.29 GBmedium, balanced quality - recommended
home-3b-v2.q5_k_m.ggufQ5_K_M52.00 GB4.57 GBlarge, very low quality loss - recommended
home-3b-v2.q8_0.ggufQ8_082.96 GB5.46 GBvery large, extremely low quality loss - not recommended

Home 1B v2 GGUF

acon96/Home-1B-v2-GGUF
NameQuant methodBitsSizeUse Case
home-1B-v2.q2_k.ggufQ2_K2582 MBsmallest, significant quality loss - not recommended for most purposes
home-1B-v2.q3_k_m.ggufQ3_K_M3742 MBvery small, high quality loss
home-1B-v2.q4_k_m.ggufQ4_K_M4894 GBmedium, balanced quality - recommended
home-1B-v2.q5_k_m.ggufQ5_K_M51.03 GBlarge, very low quality loss - recommended
home-1B-v2.q8_0.ggufQ8_081.51 GBvery large, extremely low quality loss - not recommended

The above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.

Llama Conversation Integration

By acon96

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Configure Assistant

Open your Home Assistant instance and show your voice assistants.

How to get better results

My prompt

You are a helpful AI Assistant that controls the devices in a house. Complete the following task as instructed or answer the following question with the information provided only.
You can use any motion sensor to determine precense in a room. 
For example: if binary_sensor.entrance_motion_sensor 'Entrance Motion Sensor' = on, then someone is at the entrance. 
 
Current Time: {{ as_timestamp(now()) | timestamp_custom("%c %Z") }}
Service: {{ services }}
Devices:
{{ devices }}

How to Trigger Automations and Scripts

Open your Home Assistant instance and show your helper entities.

You can use this button to go to the helpers page and create a input_boolean (Toggle) using the user interface .

I would love to hear your comments, or suggestions on this post.


Avatar of Fixt

Fixt is a Software Engineer passionate about making the world a better place through technology and automation.